<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title>Users: <%= controller.action_name %></title>
	<!-- <%= stylesheet_link_tag 'default.css' %> -->
</head>
<body>	
	<div id="wrapper">
		<div id="header">
			<h1>TA Management System</h1>
			<% if session[:user] != nil %>
				<% if session[:user].user_type == "admin" %>
					<a href="/semesters/">View Semester List</a> | 
				<% else %>
					<a href="/semesters/">Apply for a TA postion</a> | 
				<% end %>
				<%= link_to "#{session[:user].first_name}'s account", {:controller => "users", :action => "show", :id =>session[:user].id} %> | 
				<%= link_to "logout", {:controller => "users", :action => "logout"} %>
			<% else %>
				<a href="/semesters/">Apply for a TA postion</a> |
				Not currently logged in, 
				<%= link_to "login here", {:controller => "users", :action => "login"} %>
			<% end %>
					
			<fieldset>
				<legend><b>Developer Information </b></legend>
				<% if session[:user] != nil %>
					User ID: 	<%= session[:user].id %><br />
					User Type: 	<%= session[:user].user_type %><br />
					Email: 		<%= session[:user].email %><br />
					Password: 	<%= session[:user].password %><br />
				<% else %>
					No user is logged in.
				<% end %>
			</fieldset>
		</div>
		
		<div id="content">
			<%= yield %>
		</div>
		<div id="clearFooter">
			<a href="/semesters/">Apply for a TA postion</a></li>
		</div>
	</div>
	<div id="footer"></div>
</body>
</html>